package day02.edu;

// Created: 09/01/2025, ChangJiang Ru
public class Season {
    private final String SeasonName; // Including: Spring, Summer, Fall or Autumn, Winter
    private final String SeasonDescription;

    private Season(String SeasonName, String SeasonDescription)
    {
        this.SeasonName = SeasonName;
        this.SeasonDescription = SeasonDescription;
    }

    public String getSeasonName()
    {
        return this.SeasonName;
    }
    public String getSeasonDescription()
    {
        return this.SeasonDescription;
    }

    // Creating the instance filed
    public static final Season spring = new Season("Spring", "Flower will open and weather is warm");

    @Override
    public String toString() {
        return "Season{" +
                "SeasonName='" + SeasonName + '\''+
                ", SeasonDescription='" + SeasonDescription + '\'' +
                '}';
    }
}

class SeasonTest
{
    public static void main(String[] args) {
        System.out.println("name = " + Season.spring.getSeasonName() +
                "\nDescription = " + Season.spring.getSeasonDescription());
        System.out.println(Season.spring);
    }
}
